<template>
	<view class="my-tag">
		<view :class="activeColor?'tag-wrap-border':'tag-wrap-border2'" @click="handleClick">
			<view :class="activeColor?'tag-value':'tag-value2'">{{value}}</view>
			<span class="iconfont icon-xialajiantouxiao jiantou" ></span>
		</view>
	</view>
</template>

<script>
	export default {
		name:"mt-tag",
		data() {
			return {
				activeColor:true
			};
		},
		methods:{
			handleClick(){
				this.activeColor = false
				this.$emit('click',this.value)
			},
		},
		props:{
			icon:{
				type:Boolean,
				default:false
			},
			value:{
				type:String,
				default:'2010.06'
			},
		}
	}
</script>

<style lang="scss" scoped>
	.jiantou{
		font-size: 24rpx;
		margin-left: 6rpx;
	}
	.tag-wrap-border{
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 12rpx;
		border-radius: 30rpx;
		border: 2rpx solid #e4e4e5;
	}
	.tag-wrap-border2{
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 12rpx;
		border-radius: 30rpx;
		color: #0055ff;
		border: 2rpx solid #e4e4e5;
	}
	.tag-value{
		line-height: 46rpx;
		font-size: 24rpx;
	}
	.tag-value2{
		line-height: 46rpx;
		font-size: 24rpx;
	}
	.tag-icon{
		color: #454A5E;
	}
</style>
